<admintpl file="header"/>
<link rel="stylesheet" href="__PUBLIC__/css/jquery.datetimepicker.css">
<link rel="stylesheet" href="__PUBLIC__/css/wechat.css">
<link rel="stylesheet" href="__PUBLIC__/css/main.css">
<script src="__PUBLIC__/js/laydate.js"></script>
<style>
    .well input,select{margin-top: 10px;}
    .well select{height: 37px;line-height: 37px}
</style>
</head>

<body>

<div class="manage">
    <span><a href="">微信推送</a></span>
</div>

<div class="act_main">

    <a href="#">微信推送</a>
    >>
    <span class="tag-list">
        推送管理
    </span>

</div>

<div class="wrap">

    <div class="all-tags">
        <span class="tags-count">所有素材({$pushCount}条)</span>
    </div>

    <form class="well" method="post" action="{:U('Push/index')}">
        <span>起始时间</span> <input type="text" name="strarExpirationTime" value="{$strarExpirationTime}" id="startlinetime" placeholder="请选择开始时间">

        <input type="text" name="endExpirationTime" value="{$endExpirationTime}" id="endlinetime" placeholder="请选择结束时间">

        <button type="submit" class="btn btn-primary">查找</button>
    </form>
    <table border="1" cellpadding="2" cellspacing="0" width="80%" align="center"  class="activityList table table-hover table-bordered table-list">
        <tr><td>消息</td><td>推送时间</td><td>对应标签</td><td>标签下发送粉丝数</td><td>成功发送人数</td><td>失败人数</td><td>操作</td><td></td></tr>
        <volist name="list" id="v">
            <tr>
                <td>

                    <ul>
                        <foreach name="v['item']['news_item']" item="vo">
                            <li>{$vo.title}</li>
                        </foreach>
                    </ul>


                </td>
                <td>{$v.add_time|date='Y-m-d H:i:s',###}</td>
                <td><?php if($v['push_range']==0) { ?>发送全部<?php } else { ?>{$v.push_range|getCityByCityName}<?php } ?></td>
                <td>{$v['total_count']}</td>
                <td>{$v['sent_count']}</td>
                <td>{$v['error_count']}</td>
                <td><a href="{:U('Push/detail',['id'=>$v['id']])}">查看详情</a></td>
                <td></td>
            </tr>

        </volist>
    </table>
    <div class="pagination">{$pager}</div>
</div>


<script type="text/javascript">

    $(function () {

        $('#startlinetime').click(function () {
            laydate({elem: '#startlinetime', format: 'YYYY-MM-DD hh:mm:ss', istime: true});
        });

        $('#endlinetime').click(function () {
            laydate({elem: '#endlinetime', format: 'YYYY-MM-DD hh:mm:ss', istime: true});
        });


    })

</script>

<script src="__PUBLIC__/js/uploadify/jquery2.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/artDialog/artDialog.js"></script>

<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/js/tablesorter/dist/js/jquery.tablesorter.min.js"></script>
<script src="__PUBLIC__/js/tablesorter/dist/js/jquery.tablesorter.widgets.min.js"></script>
<link rel="stylesheet" href="__PUBLIC__/js/tablesorter/dist/css/theme.default.min.css">
</body>
</html>